package cn.kgc.vue.common;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/8/9
 * @Description:
 */
public enum ResponseStatus {
    HAS_CHILDNODE(500,"含有子节点不能删除"),

    ACCREDIT_ACCOUNT(500,"没有权限"),
    TOKEN_ERROR(500,"token异常"),
    TOKEN_EXPIRED(500,"token失效"),
    AUTHORIZATION_ERROR(500,"没有操作权限,请联系管理员"),
    APPROVE_ACCOUNT(500,"请认证"),
    JWTD_ACCOUNT(500,"token验证错误"),
    LOCKED_ACCOUNT(500,"用户被禁用,请联系管理员!!!"),
    INCORRECT_CREDENTIALS(500,"密码错误"),
    UNKNOWN_ACCOUNT(500,"用户名不存在!!!"),
    KNOWN_ACCOUNT(500,"用户名已存在!!!"),
    DOWN_EXIT(500,"服务器里面文件不存在!!!"),
    STUDENTNO_ACCOUNT(500,"学号已存在!!!"),
    ROLE_EXIT(500,"角色名称或标识已存在!!!"),
    COURSE_EXIT(500,"课程名称或编号已存在!!!"),
    DEPT_EXIT(500,"部门已存在!!!"),
    ROLE_USER(500,"角色已被绑定"),
    COURSE_USER(500,"课程已被绑定"),
    DEPT_USER(500,"部门已被绑定"),
    CODE_ERROR(500,"验证码错误!!!"),
    CODE_EXPIRE(500,"验证码失效!!!"),
    FAIL(500,"操作失败"),
    SUCCESS(200,"操作成功") ,
    ALLOCATION_SUCCESS(200,"权限分配成功"),
    ADD_SUCCESS(200,"添加成功") ,
    UPDATE_SUCCESS(200,"更新成功") ,
    DELETE_SUCCESS(200,"删除成功") ,
    LOGIN_SUCCESS(200,"登录成功");

    private Integer code;
    private String msg;

    ResponseStatus(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
